import type { RouteRecordRaw } from "vue-router"

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    redirect: "/login",
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("../views/Login.vue"),
  },
  {
    path: "/jobs",
    name: "JobSearch",
    component: () => import("../views/JobSearch.vue"),
    meta: { requiresAuth: true },
  },
  {
    path: "/talent",
    name: "TalentSearch",
    component: () => import("../views/TalentSearch.vue"),
    meta: { requiresAuth: true },
  },
  {
    path: "/candidate/:id",
    name: "CandidateDetail",
    component: () => import("../views/CandidateDetail.vue"),
    meta: { requiresAuth: true },
  },
  {
    path: "/resume",
    name: "ResumeManagement",
    component: () => import("../views/ResumeManagement.vue"),
    meta: { requiresAuth: true },
  },
  {
    path: "/communication",
    name: "Communication",
    component: () => import("../views/Communication.vue"),
    meta: { requiresAuth: true },
  },
  {
    path: "/job-communication",
    name: "JobCommunication",
    component: () => import("../views/JobCommunication.vue"),
    meta: { requiresAuth: true },
  },
  {
    path: "/post-job",
    name: "PostJob",
    component: () => import("../views/PostJob.vue"),
    meta: { requiresAuth: true },
  },
  {
    path: "/job-management",
    name: "JobManagement",
    component: () => import("../views/JobManagement.vue"),
    meta: { requiresAuth: true },
  },
]

export default routes
